package com.dream.base.network.utils;

import java.io.IOException;
import java.io.InputStream;

/**
 * Description: TODO
 * author: Wang
 * date: 3/9/17 16:38
 * email:life_artist@163.com
 * Copyright©2017 by wang. All rights reserved.
 */
public class UploadStreamDescriber {

    public UploadStreamDescriber(InputStream inputStream, long length, String mimeType) {
        this.inputStream = inputStream;
        this.length = length;
        this.mimeType = mimeType;
    }

    public InputStream inputStream;
    public long length;
    public String mimeType;

    public void close() {
        if (inputStream != null) {
            try {
                inputStream.close();
            } catch (IOException e) {

            }
        }
    }
}
